var i;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var GameGlobalVariable = require("AA_GameGlobalVariable");
var _decorator = cc._decorator;
var _ccclass = _decorator.ccclass;
_decorator.property;
var _def_IpadShiPei = function (e) {
  function _creator() {
    return null !== e && e.apply(this, arguments) || this;
  }
  __extends(_creator, e);
  _creator.prototype.onLoad = function () {
    var e = cc.winSize.width;
    var t = cc.winSize.height;
    console.log("平板 宽度=" + e, "高度=" + t);
    var o = this.node.getComponent(cc.Canvas);
    if (t / e < 1334 / 750) {
      o.fitHeight = true;
      o.fitWidth = false;
      GameGlobalVariable.GameGlobalVariable.isPad = true;
      console.log("平板 宽度 适配后 宽度=" + cc.winSize.width, "高度=" + cc.winSize.height);
    } else {
      GameGlobalVariable.GameGlobalVariable.isPad = false;
      o.fitHeight = false;
      o.fitWidth = true;
      console.log("手机");
    }
  };
  _creator.prototype.start = function () {};
  _creator.prototype.checkIsMiniGame = function () {};
  return __decorate([_ccclass], _creator);
}(cc.Component);
exports.default = _def_IpadShiPei;